<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/css/layui.css">
    <link rel="stylesheet" href="/css/zyy01.css">
    <script src="/js/jquery-3.7.1.min.js"></script>
</head>
<body>
<div class="container">
    <div class="layui-row">
        <div class="layui-col-xs12">
            <h1 style="text-align: center">教师信息管理</h1>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-col-xs12 toolbar">
            <button type="button" class="layui-btn layui-btn-sm layui-btn-normal"
                    onclick="showTeacherDlg();return false;">
                <i class="layui-icon layui-icon-addition"></i>
            </button>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-col-xs12">
            <table class="layui-table" lay-even>
                <thead>
                <tr>
                    <th>id</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>工号</th>
                    <th>年龄</th>
                    <th>编辑 &nbsp; &nbsp;删除</th>
                </tr>
                </thead>

                <tbody id="teacherTb">

                </tbody>
            </table>
        </div>
    </div>
</div>

<form class="layui-form dlgcontainer" id="teacForm" style="display: none;">
    <div class="demo-reg-container">
        <div class="layui-form-item" id="formId">
            <div class="layui-row">
                <div class="layui-col-xs12">
                    <div class="layui-input-wrap">
                        <label class="layui-form-label">ID</label>
                        <div class="layui-input-block">
                            <input type="text" name="id" value=""
                                   placeholder="ID" lay-reqtext="id" autocomplete="off"
                                   class="layui-input" id="id">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <label class="layui-form-label">工号</label>
                <div class="layui-input-block">
                    <input type="text" name="tno" value="" lay-verify="required" placeholder="工号"
                           lay-reqtext="请填写工号" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-block">
                    <input type="text" name="name" value="" lay-verify="required" placeholder="姓名"
                           autocomplete="off" class="layui-input" id="name">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block">
                    <input type="radio" name="sex" value="女" title="女" checked>
                    <input type="radio" name="sex" value="男" title="男">
                    <input type="radio" name="sex" value="未知" title="未知">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <label class="layui-form-label">年龄</label>
                <div class="layui-input-block">
                    <input type="text" name="age" value="" placeholder="年龄"
                           autocomplete="off" class="layui-input" lay-affix="clear">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="teac-dlg" id="btnOK">提交</button>
        </div>
    </div>
</form>

<script src="/js/layui.js"></script>
<script src="/pagejs/zyy01.js"></script>
</body>
</html>